package site.wuao.simpledesignmode.proxy.simple;

import site.wuao.simpledesignmode.proxy.IShop;

/**
 * 代理类
 *
 * @author wuao
 * @date 2018.04.16
 * @note -
 * ---------------------------------------------------------------------------------------------------------------------
 * @modified -
 * @date -
 * @note -
 */
public class Purchasing implements IShop {
    private IShop mShop;

    public Purchasing(IShop shop) {
        mShop = shop;
    }

    @Override
    public void buy() {
        System.out.println("代理可以限制用户不能买");
        mShop.buy();
    }
}
